package com.dlc.shop.bean.dto.wukong;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;

/**
 * 获取某频道消息
 * @author TRACK
 */
public class MessageSyncDTO {

    @Schema(description = "当前登录用户uid")
    private String login_uid;

    @Schema(description = "频道的唯一ID")
    @NotBlank(message = "频道id不能为空")
    private String channel_id;

    @Schema(description = "频道的类型 1.个人频道 2.群聊频道")
    private Integer channel_type;

    @Schema(description = "开始消息列号（结果包含start_message_seq的消息）")
    private Integer start_message_seq;

    @Schema(description = "结束消息列号（结果不包含end_message_seq的消息）")
    private Integer end_message_seq;

    @Schema(description = "消息数量限制")
    private Integer limit;

    @Schema(description = "拉取模式 0:向下拉取 1:向上拉取")
    private Integer pull_mode;

    public String getLogin_uid() {
        return login_uid;
    }

    public void setLogin_uid(String login_uid) {
        this.login_uid = login_uid;
    }

    public String getChannel_id() {
        return channel_id;
    }

    public void setChannel_id(String channel_id) {
        this.channel_id = channel_id;
    }

    public Integer getChannel_type() {
        return channel_type;
    }

    public void setChannel_type(Integer channel_type) {
        this.channel_type = channel_type;
    }

    public Integer getStart_message_seq() {
        return start_message_seq;
    }

    public void setStart_message_seq(Integer start_message_seq) {
        this.start_message_seq = start_message_seq;
    }

    public Integer getEnd_message_seq() {
        return end_message_seq;
    }

    public void setEnd_message_seq(Integer end_message_seq) {
        this.end_message_seq = end_message_seq;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getPull_mode() {
        return pull_mode;
    }

    public void setPull_mode(Integer pull_mode) {
        this.pull_mode = pull_mode;
    }

    @Override
    public String toString() {
        return "MessageSyncDTO{" +
                "login_uid='" + login_uid + '\'' +
                ", channel_id='" + channel_id + '\'' +
                ", channel_type=" + channel_type +
                ", start_message_seq=" + start_message_seq +
                ", end_message_seq=" + end_message_seq +
                ", limit=" + limit +
                ", pull_mode=" + pull_mode +
                '}';
    }
}
